package com.example.deepschool.service.Discussion;

import com.example.deepschool.Model.Pagination;
import lombok.SneakyThrows;

public interface Discussion {
    Integer insert(com.example.deepschool.Model.Discussion discussion, String UUID);

    Integer delete(Long id, String UUID);

    com.example.deepschool.Model.Discussion selectById(Long id, String UUID);
    com.example.deepschool.Model.Discussion[] selectByCourseId(Long courseId, Integer page);
    com.example.deepschool.Model.Discussion[] selectByCourseIdAndToDiscussionId(Long courseId, Long toDiscussionId, Integer page);

    Integer selectCountByCourseId(Long courseId);

    Integer selectCountByCourseIdAndToDiscussionId(Long courseId, Long toDiscussionId);
}
